package com.llb666.e.shop.infrastructure.convert;

import com.llb666.e.shop.domain.entity.UserAddress;
import com.llb666.e.shop.infrastructure.po.UserAddressPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author llb666
 * @date 2022/7/8 18:44
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UsersAddressCvt {

    UsersAddressCvt INSTANCE = Mappers.getMapper(UsersAddressCvt.class);

    UserAddressPo do2po(UserAddress usersAddress);

    UserAddress po2do(UserAddressPo user);

    List<UserAddress> po2doList(List<UserAddressPo> user);
}
